package com.jzo2o.customer.mapper;

import com.jzo2o.customer.model.domain.WorkerCertificationAudit;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jzo2o.customer.model.dto.response.WorkerCertificationAuditResDTO;
import org.springframework.data.repository.query.Param;

import java.util.List;

/**
 * <p>
 * 服务人员认证审核表 Mapper 接口
 * </p>
 *
 * @author mr.zhao
 * @since 2025-07-01
 */
public interface WorkerCertificationAuditMapper extends BaseMapper<WorkerCertificationAudit> {

	/**
	 * 获取驳回原因
	 * @return
	 */
	String getRejectReason(@Param("userId") Long userId);

	/**
	 * 分页查询审核信息
	 * @param idCardNo
	 * @return
	 */
	List<WorkerCertificationAuditResDTO> pageList();
}
